#ifndef R_HTR_H
#define R_HTR_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>

class RotateDevices :public QWidget
{
    Q_OBJECT
    Q_PROPERTY(int rotateAngle READ get_Rotate_Angle WRITE setPlatform_Angle)

public:
    explicit RotateDevices(QWidget *parent = nullptr);

public:
    int rotateAngle=0;

public:
    void setPlatform_Angle(const int degree);
    int get_Rotate_Angle() const;

private:
    void paintEvent(QPaintEvent*);
    void drawCircle(QPainter *painter);
    void drawScale(QPainter *painter);
    void drawScaleNum(QPainter *painter);
    void drawPointer(QPainter *painter);
};

#endif // R_HTR_H
